// pages/kal/kal.js
let {productData} =require("../../utils/data")
console.log(productData)
Page({

  /**
   * 页面的初始数据
   */
  data: {
    list:[],
    currentCounts:1
  },
  onLoad(options){
    console.log(options.id)
    let id = options.id
    let a = productData.find((item)=>{
      return id ==item.id
    })
    this.setData({
      list:a
    })
  },
  // onCountsChange(e){
  //   let index = e.detail.value;
  //   let currentCounts = this.data.countsArr[index]
  //   this.setData({
  //     currentCounts
  //    })
  // }
  

 
  
})